﻿<local:DocumentBase x:Class="WPFExcelReport.DSTEXWBD14"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:IntexReport.DataSource"
                    Height="700" Width="1024" 
                    Title="入库单"  
                    >
    <local:DocumentBase.Resources>
        <db:SETVV  x:Key="SETUI" />
        <CollectionViewSource   x:Key="vwKUNDADR" Source="{Binding Path=KUNDADR,Source={StaticResource SETUI}}" />
        <CollectionViewSource   x:Key="vwKDSTAMM" Source="{Binding Path=KDSTAMM,Source={StaticResource SETUI}}" />
        <CollectionViewSource   x:Key="vwVKKOPF" Source="{Binding Path=VKKOPF,Source={StaticResource SETUI}}" />
        <CollectionViewSource   x:Key="vwVKPOS" Source="{Binding Path=VKPOS,Source={StaticResource SETUI}}" />
        <CollectionViewSource   x:Key="vwVVTLIEF" Source="{Binding Path=VVTLIEF,Source={StaticResource SETUI}}" />
        <CollectionViewSource   x:Key="vwVVLIEF" Source="{Binding Path=VVLIEF,Source={StaticResource SETUI}}" />
        <CollectionViewSource   x:Key="vwWBBST" Source="{Binding Path=WBBST,Source={StaticResource SETUI}}" />
        <CollectionViewSource   x:Key="vwVVPACK" Source="{Binding Path=VVPACK,Source={StaticResource SETUI}}" />
    </local:DocumentBase.Resources>
    <Grid DataContext="{Binding}">
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="200" />
            <RowDefinition Height="500" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/> 
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2"  >            
            <WrapPanel Name="ZoneOrder">
                <TextBlock FontSize="18" Height="Auto"  Width="Auto"  Text="入库卡号" Margin="10,0,0,0" />
                <TextBox FontSize="18" Height="Auto"  Background="AliceBlue" Width="94" Name="txtVVLIEFSCH" Margin="10,0,0,0" />
                <Button  Height="30"  Width="30" Margin="10,0,0,0" Name="btnGetVVLIEF" Click="btnGetVVLIEF_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" TabIndex="13">
                    <Button.Background>
                        <ImageBrush ImageSource="/IntexReportClient;component/Images/Search.png" />
                    </Button.Background>
                </Button>
                <TextBlock FontSize="18">单位</TextBlock>
                <ComboBox Name="cmbUoM" IsEditable="True" IsTextSearchEnabled="True" Background="White" Width="60"
                          Text="YD"
                          >
                    <ComboBoxItem>YD</ComboBoxItem>
                    <ComboBoxItem>M</ComboBoxItem>
                </ComboBox>
                <Button   Height="30" Margin="20,0,0,0"  Name="btnPrint" Width="30" Click="btnPrint_Click">
                    <Button.Background>
                        <ImageBrush ImageSource="/IntexReportClient;component/Images/Print.png" />
                    </Button.Background>
                </Button>
            </WrapPanel>
            <WrapPanel Name="ZoneFTP"
                   Visibility="Hidden">
                <CheckBox FontSize="14"
                      Content="属于管理员"
                      Name="IsBelongs2Admin"></CheckBox>
                <TextBlock FontSize="14"
                       MinWidth="200"
                       Width="Auto"
                       Name="Administration"
                       Background="#FF00AF00"></TextBlock>
                <TextBlock>FTP站点:</TextBlock>
                <TextBox Name="txtFTPSite"
                     Width="Auto"
                     TabIndex="6">192.168.1.102</TextBox>
                <TextBox Name="txtFTPPort"
                     Width="Auto"
                     TabIndex="7">21</TextBox>
                <Label Content="用户名"
                   Width="60"
                   Margin="10,0,0,0"
                   HorizontalAlignment="Left"
                   FontSize="18"
                   VerticalAlignment="Center" />
                <TextBox Name="txtFTPUser"
                     Width="80"
                     Margin="10,0,0,0"
                     Text="sun"
                     HorizontalAlignment="Left"
                     Background="Yellow"
                     FontSize="18"
                     MaxLength="8"
                     AcceptsTab="False"
                     CharacterCasing="Upper"
                     KeyboardNavigation.TabIndex="0"
                     TabIndex="8" />
                <Label Content="密码"
                   Width="40"
                   Margin="10,0,0,0"
                   HorizontalAlignment="Left"
                   FontSize="18"
                   VerticalAlignment="Center" />
                <PasswordBox Name="txtFTPPwd"
                         Width="80"
                         Margin="10,0,0,0"
                         HorizontalAlignment="Left"
                         Background="Yellow"
                         FontSize="18"
                         KeyboardNavigation.TabIndex="1"
                         TabIndex="9" />
                <Button Height="Auto"
                    Margin="10,0,0,0"
                    Name="btnLogFTP"
                    Width="34"
                    Click="btnLogFTP_Click"
                    KeyboardNavigation.TabIndex="2"
                    IsDefault="True"
                    TabIndex="10">
                    <Button.Background>
                        <ImageBrush ImageSource="/IntexReportClient;component/Images/User.png" />
                    </Button.Background>
                </Button>
            </WrapPanel>
        </StackPanel>
         <StackPanel Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" Margin="0,0,0,0">
            <fd:FilteringDataGrid  
                IsFilteringCaseSensitive="False"
                AutoGenerateColumns="False" 
                HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                               ItemsSource="{Binding Source={StaticResource ResourceKey=vwWBBST}}" 
                               Margin="0,0,0,0" 
                               x:Name="listWBBST" Height="Auto" MinHeight="300">
                <fd:FilteringDataGrid.Columns>
                    <DataGridTextColumn Header="卡号" Binding="{Binding WBBRWLFD}"/>
                    <DataGridTextColumn Header="序号" Binding="{Binding WBBPOS}"/>
                    <DataGridTextColumn Header="件号" Binding="{Binding WBBBEM}"/>
                    <DataGridTextColumn Header="布卷号" Binding="{Binding WBBSTKNR}"/>
                    <DataGridTextColumn Header="品种" Binding="{Binding WBBART}"/>
                    <DataGridTextColumn Header="变量" Binding="{Binding WBBVAR}"/>
                    <DataGridTextColumn Header="颜色" Binding="{Binding WBBFARBE}"/>
                    <DataGridTextColumn Header="后整理方式" Binding="{Binding WBBBESCHICH}"/>
                    <DataGridTextColumn Header="长度" Binding="{Binding WBBISTKLG}"/>
                    <DataGridTextColumn Header="重量(KG)" Binding="{Binding WBBSGEW}"/>
                </fd:FilteringDataGrid.Columns>
            </fd:FilteringDataGrid  >
        </StackPanel>
    </Grid>
</local:DocumentBase>